var express = require('express');
var fs = require('fs');

var app = express();

var router = express.Router();

router.get('/', function (req, res, next) {
	req.url = './index.html';
	next();
});

app.use(router);

app.use(express.static('./build'));

module.exports = app.listen(8082, function (err) {
	if (err) {
		console.log(err);
		return
	}
	console.log('Listening at http://localhost:' + 8082 + '\n')
});
